package com.dahua.messagesyncsh.service;

import com.dahua.messagesyncsh.criteria.SensorDataQueryCriteria;
import com.dahua.messagesyncsh.entity.SensorData;
import com.dahua.messagesyncsh.entity.SensorDataAbbreviation;
import com.dahua.messagesyncsh.pojo.Foundation;
import com.dahua.messagesyncsh.service.Impl.SensorDataServiceImpl;

import java.util.List;

public interface SensorDataService {
    List<SensorDataAbbreviation> obtainAbbreviation(SensorDataQueryCriteria sensorDataQueryCriteria);

    Integer insert(SensorData sensorData);

    Integer update(SensorData sensorData);

   void toInsert(String key, Foundation foundation, SensorData sensorData, SensorDataServiceImpl.Type type);
}
